//
//  Merchant.h
//  SpaceTrader
//
//  Created by Brandon Chastain on 10/29/12.
//  Copyright (c) 2012 The Hex Pistols. All rights reserved.
//
#include "SpaceTrader.h"

class Merchant{
    
protected:
    
    //index is correlated to good id
	int itemCount;
    int inventory[10];
    
    int money;
    
public:
    Merchant();
    
    virtual ~Merchant();
    
	virtual bool buy(int good,int price, int qty) = 0;
	
	virtual bool sell(int good,int price, int qty) = 0;
	
	
    //deletes qty number of items from the merchant's inventory and adds appropriate amt to merchant's money
    //virtual bool sell(trade_good_t good, int qty) = 0;
    
    //adds qty number of items to the merchant's inventory and subtracts appropriate amt from merchant's money
    //virtual bool buy(trade_good_t good, int qty) = 0;

    //gets the quantity of the particular good that the merchant has
    //int getInventory(trade_good_t good);
	int getInventory(int good);

    
};